package com.example.demo_homework2.mapper;

import com.example.demo_homework2.bean.CmsCategory;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface CmsCategoryMapper {
    int deleteByPrimaryKey(String id);

    int insert(CmsCategory record);

    CmsCategory selectByPrimaryKey(String id);

    List<CmsCategory> selectAll();

    int updateByPrimaryKey(CmsCategory record);

    List<CmsCategory> allCategoryWithParent();

    int deleteByIds(String[] ids);

    int selectCountByPid(String id);



}